package com.xuanwei.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xuanwei.core.service.IXwNavigateProductService;
import com.xuanwei.dao.entity.XwNavigateProduct;
import com.xuanwei.dao.mapper.XwNavigateProductMapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author mjy
 * @since 2019-07-30
 */
@Service
public class XwNavigateProductServiceImpl extends ServiceImpl<XwNavigateProductMapper, XwNavigateProduct> implements IXwNavigateProductService {
    @Override
    public XwNavigateProduct findByNavigateIdAndProductId(Integer navigateId, Integer productId) {
        return getOne(new QueryWrapper<XwNavigateProduct>()
                .eq("navigate_id", navigateId)
                .eq("product_id", productId));
    }
}
